/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require select2
 *= require select2-bootstrap
 *= require bootstrap-datetimepicker
 */

@import "dataTables/bootstrap/3/jquery.dataTables.bootstrap";
@import "dataTables/bootstrap/3/rowReorder";
@import "dropzone/dropzone";

@import "bootstrap-sprockets";
@import "bootstrap/cosmo/variables";
@import "bootstrap";
@import "bootstrap/cosmo/bootswatch";
@import "bootstrap/treenav";
@import "bootstrap/tinymce";

.select2-container--bootstrap .select2-selection--single {
  height: 42px;
  line-height: 2;
}

.table {
  .blank {
    color: $gray-light;
  }

  .actions {
    a {
      margin-right: 5px;
    }
  }
}

.datatable[data-reorder] {
  tr > td:not(.dataTables_empty):first-child {
    cursor: move;
  }
}

.form-group.file {
  .clear-file {
    color: $input-color-placeholder;
    font-weight: normal;
  }
}

.dropzone {
  border: 2px dashed $input-border;
  border-radius: 5px;
  background: $input-bg;

  &.dz-drag-hover {
    border: 2px dashed $input-border-focus;
  }

  > .dz-message {
    color: $input-color-placeholder;
  }

  > img {
    max-height: 300px;
    max-width: 300px;
  }
}

.radio_buttons {
  span {
    display: inline-block;
    margin-left: 10px;
  }
}

.page-header {
  .pull-right {
    margin-top: 9px;
  }
}

.table {
  tr {
    .glyphicon-select:before {
      content: "\e157";
    }

    &.selected {
      background-color: #d9edf7;

      .glyphicon-select:before {
        content: "\e067";
      }
    }

    &.selected.odd, &.selected:nth-of-type(odd) {
      background-color: #d9edf7;
    }

    &.selected:hover {
      background-color: darken(#d9edf7, 5%);
    }
  }

  thead th {
    white-space: nowrap;
  }

  thead {
    .sorting,
    .sorting.asc,
    .sorting.desc,
    .sorting.asc.disabled,
    .sorting.desc.disabled {
      cursor: pointer;
      position: relative;
    }

    .sorting:after,
    .sorting.asc:after,
    .sorting.desc:after {
      position: absolute;
      top: 8px;
      right: 8px;
      display: block;
      font-family: 'Glyphicons Halflings';
      opacity: 0.5;
    }

    .sorting:after {
      opacity: 0.2;
      content: "\e150";
      /* sort */
    }

    .sorting.asc:after {
      content: "\e155";
      /* sort-by-attributes */
    }

    .sorting.desc:after {
      content: "\e156";
      /* sort-by-attributes-alt */
    }
  }
}

ul.pagination {
  margin: 0 !important;
  white-space: nowrap;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 90px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;

  .container, .container-fluid {
    padding: 0 15px;
    margin-bottom: 0;

    .text-muted {
      margin: 20px 0;
    }

    .divider {
      display: inline-block;
      width: 20px;
    }
  }
}

body > .container-fluid {
  margin: 0 30px;
}

.nested-fields {
  position: relative;

  .remove-button {
    position: absolute;
    top: 0;
    left: 100%;
  }
}
